package com.fanco.learn_datastruct_leetcode.designpattern.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @author qiaowang 2022/2/22
 * 描述
 */
public class Client {
    public static void main(String[] args) {
        // 1. 创建学院
        List<Colleage> colleages = new ArrayList<>();

        ComputerCollege computerCollege = new ComputerCollege();

        InfoColleage infoColleage = new InfoColleage();

        colleages.add(computerCollege);
        colleages.add(infoColleage);

        OutputImpl output = new OutputImpl(colleages);
        output.printCollege();

    }
}
